﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPlatePrintSys.Infrastructure.Models {

    [Obsolete]
    public class ProcessSequenceModel {
        public string VesselNumber { get; set; }    // 流用串号
        public string UnitName { get; set; }        // unit名称
        public string LotNumber { get; set; }       // lot名称
        public string ProcessSequence { get; set; } // 加工序列
        private DateTime scheduledDate { get; set; }   // 使用预定日
        public string ScheduledDate { get { return this.scheduledDate.ToString("yyyy/MM/dd"); } }   // 使用预定日
        public string Remarks { get; set; }         // 备注
        public string Status { get; set; }          // 状态
        public string DataSource { get; set; }      // 数据来源
        private DateTime creationTime { get; set; }    // 创建时间
        public string CreationTime { get { return this.creationTime.ToString("yyyy/MM/dd"); } }    // 创建时间

        public ProcessSequenceModel(string vesselNumber,
            string unitName, string lotNumber, string processSequence, DateTime scheduledDate, string remarks, string status,
            string dataSource, DateTime creationTime) {
            VesselNumber = vesselNumber;
            UnitName = unitName;
            LotNumber = lotNumber;
            ProcessSequence = processSequence;
            this.scheduledDate = scheduledDate;
            Remarks = remarks;
            Status = status;
            DataSource = dataSource;
            this.creationTime = creationTime;
        }
    }
}
